package com.choosefine.it.team.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.choosefine.it.base.dto.PageDTO;
import com.choosefine.it.team.dao.TeamEvaluationInfoMapper;
import com.choosefine.it.team.model.TeamEvaluationInfo;
import com.choosefine.it.team.service.TeamEvaluationInfoService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

@Service("teamEvaluationInfoService")
public class TeamEvaluationInfoServiceImpl implements TeamEvaluationInfoService {

	@Autowired
	private TeamEvaluationInfoMapper teamEvaluationInfoMapper;

	@Override
	public Page<TeamEvaluationInfo> selectEvaluationByUUID(String userCode, PageDTO pageDTO) {
		// 分页
		PageHelper.startPage(pageDTO.getPageNum(), pageDTO.getPageSize());
		Page<TeamEvaluationInfo> page = teamEvaluationInfoMapper.selectEvaluationByUUID(userCode);
		return page;
	}

}
